package chap5.Task;
import java.util.Arrays;
public class Task13 {
    public static void main(String[] args) {
        int[] a = new int[6];
        int i, j, b;
        for (i = 0; i < a.length; i++) {
            a[i] = (int) (Math.random() * 32 + 1);
            for (j = 0; j < i; j++) {
                if (a[i] == a[j]) {
                    i--;
                    break;
                }
            }
        }
        Arrays.sort(a);
        b = (int) (Math.random() * 15 + 1);

        System.out.println("输出双色球号:");
        for (i = 0; i < a.length; i++) {
            System.out.print(a[i] + " ");
        }
        System.out.println(b);
    }
}